<?php

/**
 * Smarty plugin [qpimg]
 */

/**
 * Return 'class'-values by map & obj incoming values
 *
 * Type:     function
 * Name:     qpimg_obj_class
 * @author   Andrei Bakulin <andrei.bakulin@gmail.com>
 * @version  1.0
 * @return string output from qpimg::get_obj_class()
 */

function smarty_function_qpimg_obj_class( $params, & $smarty )
{
    require_once( 'qpimg.php' );

    return qpimg::get_obj_class( "{$params['map']}.{$params['obj']}" );
}

?>